﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using INSTA.BankApplication.DAL;
using NUnit.Framework;

namespace INSTA.BankApplication.DAL.Tests
{
    [TestFixture]
    public class Test_DataMapper
    {
        [Test]
        public void Test_Constructor_Empty()
        {
            var p = new MockPerson();
            Assert.IsTrue(p.Id == -1);
        }

        [Test]
        public void Test_Constructor_OneParam()
        {
            var p = new MockPerson(-1);
            Assert.IsTrue(p.Id == -1);
        }

        [Test]
        public void Test_Properties_MappedProperties_ForNotNull()
        {
            var p = new MockPerson();
            Assert.NotNull(p.MappedProperties);
        }

        [Test]
        public void Test_Properties_MappedProperties_ForCount()
        {
            var p = MockPerson.GetTestPerson();
            Assert.IsTrue(p.MappedProperties.Count == 4);
        }

        [Test]
        public void Test_Properties_DbAccessor_ForNotNull()
        {
            var p = new MockPerson();
            Assert.NotNull(p.DbAccessor);
        }



    }


}
